﻿

namespace Orid.Management.SOHO.Book.ServiceLibrary
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Runtime.Serialization;
    using System.ServiceModel;
    using System.Text;

    // 注意: 如果更改此处的接口名称 "IServiceBook"，也必须更新 App.config 中对 "IServiceBook" 的引用。
    [ServiceContract]
    public interface IServiceBook
    {
        [OperationContract]
        DateTime GetCurrentTime();

        [OperationContract]
        bool AddSchedule(string operatorID, int accountID, DateTime dateFrom, DateTime dateTo);

        [OperationContract]
        bool RemoveSchedule(string operatorID, DateTime dateFrom, DateTime dateTo);


        /// <summary>
        /// Info
        /// 记录程序操作信息
        /// </summary>
        /// <param name="message">message 操作信息</param>
        [OperationContract]
        void Info(string message);

        /// <summary>
        /// Error
        /// 记录程序错误
        /// </summary>
        /// <param name="message">message 错误信息</param>
        [OperationContract]
        void Error(string message);
    }
}
